/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hash;

import interfaces.ITransaction;
import java.util.List;
import java.util.LinkedList;


/**
 *
 * @author luk
 */
public class TransactionItems {
    List<TableItem> items;
    
    public TransactionItems(){
        items = new LinkedList<TableItem>();
    }
    
    public void TransactionItems(List<TableItem> items){
        this.items = items;
    }
    
    public void add(TableItem ti){
        items.add(ti);
    }
    
    public void removeFromWindow(){
        for (TableItem ti:items){
            --ti.occurences;
        }
    }
}
